package com.sandama.bbs.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author:TongxiJi
 * Function:
 * Create Date:十月08,2015
 */
public class Group implements Serializable {
    private String name;
    private String subGroupUrl;
    private List<User> admins = new ArrayList<User>();
    private List<Game> games = new ArrayList<Game>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubGroupUrl() {
        return subGroupUrl;
    }

    public void setSubGroupUrl(String subGroupUrl) {
        this.subGroupUrl = subGroupUrl;
    }

    public List<User> getAdmins() {
        return admins;
    }

    public void setAdmins(List<User> admins) {
        this.admins = admins;
    }

    public List<Game> getGames() {
        return games;
    }

    public void setGames(List<Game> games) {
        this.games = games;
    }

    @Override
    public String toString() {
        return "name:" + getName() + "\n" +
                "subGroupUrl:" + getSubGroupUrl();
    }
}
